package sxe.core.string;

import snobject.snInteger;
import snobject.snObject;
import snobject.snObjectArgList;
import step.EvaluationFailure;
import step.FunctionWrapper;

public class toInt extends FunctionWrapper {

	public snObject Call(snObjectArgList argv) throws EvaluationFailure {
		float val = Float.valueOf(argv.popString().getString());
		return new snInteger((int)val);
	}

}